#pragma once

struct Task
{
    Task(void (*func)(void *), void *args)
        : args_(args), func_(func)
    {
    }

    ~Task()
    {
        delete args_;
    }
    void *args_;
    void (*func_)(void *); // 任务函数指针
};